You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TVec Class > TVec Methods > TVec.DownSample Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TVec.DownSample Method

Downsamples vector values.

Syntax
C#
Visual Basic
public TVec DownSample([In] TMtxVec Src, int Factor, int Phase);

The methods copies only every Factor sample from the Src vector to the calling vector. The Length and TMtxVec.ComplexComplexproperties of the calling vector are set implicitly. The phase parameter determines the initial sample offset. Phase must be less than Factor.

var a,b: TVec; begin CreateIt(a,b); try b.SetIt(False,[0,0,0,0,1,2,3,4,5,6]); a.DownSample(b,2); // a = [0,0,1,3,5] finally FreeIt(a,b); end; end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!